#!/bin/bash
echo Read serial port, returns raw data
echo Usage $0 [BaudRate] \(default 9600\)
echo Try 2400, 4800, 9600, 19200, 38400, 57600, 115200, ...
CP=./classes
CP=$CP:$PI4J_HOME/lib/pi4j-core.jar
CP=$CP:./lib/almanactools.jar
CP=$CP:./lib/geomutil.jar
CP=$CP:./lib/nauticalalmanac.jar
CP=$CP:./lib/nmeaparser.jar
CP=$CP:./lib/coreutilities.jar
JAVA_OPTIONS=
# Default serial port is /dev/ttyAMA0
# JAVA_OPTIONS="$JAVA_OPTIONS -Dport.name=/dev/ttyUSB0"
JAVA_OPTIONS="$JAVA_OPTIONS -Dverbose=true"
<<<<<<< HEAD
DEBUG_OPTIONS=
# DEBUG_OPTIONS="-client -agentlib:jdwp=transport=dt_socket,server=y,address=1044"
echo ----------------------------------------------------------
sudo java $DEBUG_OPTIONS -cp $CP $JAVA_OPTIONS readserialport.GPSDataReader $*
=======
sudo java -cp $CP $JAVA_OPTIONS readserialport.GPSDataReader $*
>>>>>>> 7c09936fdac377f880d4ad8ffae6b0b7375a94db
